package cn.bs.busuo.hotel.dao.persist.mapper;

import cn.bs.busuo.hotel.pojo.entity.Hotel;
import cn.bs.busuo.hotel.pojo.vo.HotelVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface HotelMapper extends BaseMapper<Hotel> {

    int deleteEnableById(Long hotelId);

    int selectHotelNameIfSimilar(String hotelName);

    Long selectIdByHotelName(String hotelName);

    List<HotelVO> selectAll();

    HotelVO selectById1(Long hotelId);

    List<HotelVO> selectHotelByCityId(Long cityId);

    int selectHotelIfEnable(Long id);

    List<HotelVO> selectHotelBySightId(Long sightId);

    List<HotelVO> selectHotelWhichNotSetCity();

    List<HotelVO> selectHotelWhichNotSetSight();
}
